package models;

import java.util.Date;

import siena.*;

public class WallPosts extends Model {
	
	@Id(Generator.AUTO_INCREMENT)
	private Long Id;
	

	@NotNull
	private User user;
	@NotNull
	private String message;
	private Date created;
	
	///To be added: Comments and Likes
	
	public WallPosts(User user, String message){
		this.user = user;
		this.message = message;
		this.created = new Date();
	}
	public Long getId() {
		return Id;
	}

	public void setId(Long id) {
		Id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}
}
